<!--{template @admin/header}--> 
{~ui('loader')->addon('picker.date')}
<form action="{$action}" method="post" enctype="multipart/form-data"> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="2">修改专题</td> </tr> 
   <tr>
    <td bgcolor="#F4F8FC">专题名字：</td>
    <td align="right"><input name="title" type="text" id="title" value="$topic['title']" />
      &nbsp;&nbsp;<font color="red">*</font></td>
  </tr> 
   <tr>
    <td bgcolor="#F4F8FC">专题简介：</td>
    <td align="right">
    <textarea name="intro" id="intro" cols="40" rows="5">$topic['intro']</textarea>

      &nbsp;&nbsp;<font color="red">*</font></td>
  </tr> 
   <tr>
    <td bgcolor="#F4F8FC">专题页面关键字：</td>
    <td align="right"><textarea name="keyword" id="keyword" cols="40" rows="3">$topic['keywords']</textarea>
      &nbsp;&nbsp;<font color="red">*</font></td>
  </tr> 
   <tr>
    <td bgcolor="#F4F8FC">专题页面描述：</td>
    <td align="right"><textarea name="description" id="description" cols="40" rows="5">$topic['description']</textarea>
      &nbsp;&nbsp;<font color="red">*</font></td>
  </tr> 
  
  <tr>
    <td bgcolor="#F4F8FC">大图地址：</td>
    <td align="right"><input name="big_img" type="text" id="big_img" value="$topic['big_img']" />
      &nbsp;&nbsp;<font color="red">*</font>（<font color="red">图片分辨率为 406 x 180,先把图片上传到云储存空间然后把生成的链接复制到这儿</font>）</td>
  </tr> 
   <tr>
    <td bgcolor="#F4F8FC">小图地址：</td>
    <td align="right"><input name="small_img" type="text" id="small_img" value="$topic['small_img']" />
      <font color="red">*</font>（<font color="red">图片分辨率为 122 x 44,先把图片上传到云储存空间然后把生成的链接复制到这儿</font>）</td>
  </tr> 
  <tr> <td width="18%" bgcolor="#F4F8FC">开始时间：</td> <td align="right">  <input type="text" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy年MM月dd日 HH时mm分ss秒',startDate:'{echo date('Y-m-d H:i:s', $topic['start_time'] ? $topic['start_time'] : time());}',vel:'start_time'})" size="35" class="Wdate" value="{echo date('Y年m月d日 H时i分s秒', $topic['start_time'] ? $topic['start_time'] : time());}" /> <input name="start_time" type="hidden" id="start_time" value="{echo date('Y-m-d H:i:s', $topic['start_time']  ?  $topic['start_time']  : time());}" />
    <font color="red">*</font> </td> </tr>
      <tr> <td width="18%" bgcolor="#F4F8FC">结束时间：</td> <td align="right"> <input type="text" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy年MM月dd日 HH时mm分ss秒',startDate:'{echo date('Y-m-d H:i:s', $topic['end_time'] ? $topic['end_time'] : time());}',vel:'end_time'})" size="35" class="Wdate" value="{echo date('Y年m月d日 H时i分s秒', $topic['end_time'] ? $topic['end_time'] : time());}" /> <input name="end_time" type="hidden" id="end_time" value="{echo date('Y-m-d H:i:s', $topic['end_time']  ?  $topic['end_time']  : time());}" />
    <font color="red">*</font> </td> 
      </tr>
    
     <tr>
<td>所属城市：</td><td><select name="city_id" id="city_id">
{loop $city $i $value}	  
<option value="{$value['cityid']}" {if {$topic['city_id']}=={$value['cityid']}}selected{/if}  >{$value['cityname']}</option>
{/loop}
</select>
  <font color="red">*</font></td></tr> 
  <tr> <td width="160" class="td_title">产品分类：</td> <td>
{if logic('catalog')->Enabled()}
{~ui('loader')->js('#html/catalog/catalog.mgr.ajax')}
{eval ui('catalog')->inputer($topic['cat_id'])}
{else}如需开启，请<A HREF="admin.php?mod=catalog" target=_blank>点此设置</A>。注意：刷新本页面前，请先提交保存。
{/if}<font color="red">*</font>
</td> </tr> 
   <tr>
    <td bgcolor="#F4F8FC">折扣：</td>
    <td align="right"><input name="zhekou" type="text" id="zhekou" value="$topic['zhekou']"/>
      &nbsp;&nbsp;<font color="red">*</font>;例子：1299元或者8.7折</td>
  </tr> 
  <tr> <td width="18%" bgcolor="#F4F8FC">排序：</td> <td align="right"><input name="sort" type="text" value="$topic['sort']" />
（数字越小，显示越靠前）</td> </tr>
	 <tr> <td width="18%" bgcolor="#F4F8FC">显示设定：</td> <td align="right">
 <select name="display">
  <option value="1"  {if $topic['display']==1}selected{/if}>显示</option>
   <option value="0" {if $topic['display']==0}selected{/if}>隐藏</option>
 </select>
</td> </tr>

 </table> <br> <center>
 <input type="hidden" id="id" name="id" value="{$topic['topic_id']}" />
 <input type="submit" class="button" name="addsubmit" value="提 交"></center> </form>
{template @admin/footer}